﻿class CountDistance
{
    private double distance;
    private static double totalDistance;

    public double Distance
    {
        get { return distance; }
        set { distance = value; }
    }

    public static double TotalDistance
    {
        get { return totalDistance; }
        set { totalDistance = value; }
    }

    public void AddDistance(double km)
    {
        distance += km;
        totalDistance += km;
    }
}